package sindconsole.auth.bean;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Account implements Serializable {

    @TableId(type = IdType.INPUT)
    String username;
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    String password;
    @TableField(exist = false)
    String plainPassword;
    Long userId;
    Date createdTime;
    Date updatedTime;
    Date lastLoggedInTime;
    String lastLoggedInAddr;

    @TableField(exist = false)
    private User user;


}
